//
//  MHHomePageViewModel.m
// MiaoCircle
//
//Created by acgera on 2018/4/9.
//  Copyright © 2018年 acgera. All rights reserved.
//

#import "MHHomePageViewModel.h"
#import "MHUserHomeViewModel.h"
@interface MHHomePageViewModel ()

@property (nonatomic, strong, readwrite) MHUserHomeViewModel *profileViewModel;
@property (nonatomic, strong, readwrite) MHCircleHomeViewModel *circleViewModel;
@end

@implementation MHHomePageViewModel

- (void)initialize {
    [super initialize];
    self.profileViewModel    = [[MHUserHomeViewModel alloc] initWithServices:self.services params:nil];
    self.circleViewModel    = [[MHCircleHomeViewModel alloc] initWithServices:self.services params:nil];
    self.conversation   = [[MHConversationListViewModel alloc] initWithServices:self.services params:nil];
    self.discoverViewModel   = [[MHDiscoverHomeViewModel alloc] initWithServices:self.services params:nil];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@money-guide.html",[MHConfigureManager h5BaseUrl]]]];
    self.guideViewModel = [[MHWebViewModel alloc] initWithServices:self.services params:@{MHViewModelRequestKey:request}];
    self.guideViewModel.hiddenNavBack = YES;
//    self.guideViewModel.
    self.guideViewModel.title = @"赚钱指南";
    self.discoverContainerViewModel = [[MHDiscoverContainerViewModel alloc] initWithServices:self.services params:nil];
}

@end
